import { Card } from "../../model/Card"

Page({

  data: {
    dataList:[]
  },

  //生命周期函数--监听页面加载
  onLoad: async function () {
    //获取会员已购买 - 卡 - 订单列表
    let result = await Card.get_card_list_by_uid();
    if(result.code== 0){
      this.setData({
        dataList:result.data
      })
    }else{
      console.log(result.msg);
    }
  }

})